package org.cyrano.draw;

import android.app.Activity;
import android.os.Bundle;
import android.view.KeyEvent;

/**
 * @author Demián Gutierrez
 */
public class DrawActivity extends Activity {

  private CustomDrawView customDrawView;

  // --------------------------------------------------------------------------------

  public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    customDrawView = new CustomDrawView(this);
    setContentView(customDrawView);
  }

  // --------------------------------------------------------------------------------

  public boolean onKeyDown(int keyCode, KeyEvent event) {
    customDrawView.handleKeyDown(keyCode, event);
    return super.onKeyDown(keyCode, event);
  }
}
